package com.amos.constant;

/**
 * Copyright © 2018 五月工作室. All rights reserved.
 *
 * @Package com.amos.constant
 * @ClassName Constants
 * @Description TODO
 * @Author Amos
 * @Modifier
 * @Date 2020/3/4 22:57
 * @Version 1.0
 **/
public interface Constants {
    /**
     * 默认的页码
     */
    Integer DEFAULT_PAGE_NUM = 1;
    /**
     * 默认的行数
     */
    Integer DEFAULT_PAGE_SIZE = 10;
    /**
     * 缓存失效时间
     * 单位 秒
     */
    Integer CAPTCHA_EXPIRATION = 120;
    /**
     * 验证码缓存前缀
     */
    String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 令牌前缀
     */
    String LOGIN_USER_KEY = "login_user_key";

    /**
     * 登录用户 redis key
     */
    String LOGIN_TOKEN_KEY = "login_tokens:";
    /**
     * 令牌前缀
     */
    String TOKEN_PREFIX = "Bearer ";
}
